package com.lxg.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @author 陆小根
 * date: 2022/04/27
 * Description:
 */

@Mapper
public interface AccountDao {

  @Update("update tbl_account set money = money + #{money} where name = #{name}")
  void inMoney(@Param("name") String name, @Param("money") Double money);

  @Update("update tbl_account set money = money - #{money} where name = #{name}")
  void outMoney(@Param("name") String name, @Param("money") Double money);

}
